﻿namespace DI_test;

public class ProcessorInjector
{
    public static IProcessor Inject(Processors processor){
        return processor switch
        {
            Processors.Intel => new IntelProcessor(),
            Processors.AMD => new AMDProcessor(),
            Processors.Baikal => new BaikalProcessor(),
            _ => new IntelProcessor(),
        };
    }
}
